package network;

import java.io.IOException;
import java.net.UnknownHostException;

public interface ITcpConnector {

	public boolean connect(String host, int port) throws UnknownHostException, IOException;
	
	public boolean disconnect() throws IOException;
	
	public boolean sendMessage(String message) throws IOException;
	
	public boolean sendMessage(byte[] message) throws IOException;
	
	public byte[] receiveMessage() throws IOException;
}
